package com.example.seckill.keys;

import javax.persistence.Embeddable;
import java.io.Serializable;

@Embeddable
public class SuccessKilledKey implements Serializable {
    private static final long serialVersionUID = 7371047095677658731L;

    private Long seckillId;
    private String userPhone;

    public Long getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(Long seckillId) {
        this.seckillId = seckillId;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    @Override
    public String toString() {
        return "SuccessKilledKey{" +
                "seckillId=" + seckillId +
                ", userPhone='" + userPhone + '\'' +
                '}';
    }
}
